<?php
namespace App\Services\Exchangerate;

use App\Services\ProjectValidate;
/**
 * 商品模块验证规则集合
 *
 * Class ValidateExchangerate
 */
class ValidateExchangerate extends ProjectValidate
{
    /**
     * 自定义子类初始化
     * @param array $initData
     * @return mixed
     */
    public function initValidate($initData = [])
    {
//        if (!empty($initData['c_id'])) {
//            $this->rules['c_id']  = 'numeric|min:0';
//        }

    }
    
    public $rules = [
        'id'                => 'int|min:1',
        'max_price'         => 'int|min:1',
        'min_price'         => 'int|min:0',
        'open_price'        => 'int|min:1',
        'close_price'       => 'int|min:1',
        'now_price'         => 'int|min:1',
        'page'              => 'int|min:1',
        'listRows'          => 'integer|min:1|max:100'
    ];


    
   
    public $messages = [
       
    ];

    /**
     * @var array 上面规则中定义的 key 的名字
     */
    public $attributes = [
      
    ];
}